import request from '@/utils/request'

// 文件接收台账列表
export function listFile(query) {
  return request({
    url: '/TFileStanding/TFileStanding/list',
    method: 'get',
    params: query
  })
}

// 新增文件接收台账
export function addFile(data) {
  return request({
    url: '/TFileStanding/TFileStanding',
    method: 'post',
    data
  })
}

// 修改文件接收台账
export function updateFile(data) {
  return request({
    url: '/TFileStanding/TFileStanding',
    method: 'put',
    data
  })
}

// 查询文件接收台账详细
export function getFile(id) {
  return request({
    url: '/TFileStanding/TFileStanding/' + id,
    method: 'get'
  })
}

// 删除文件接收台账
export function delFile(id) {
  return request({
    url: '/TFileStanding/TFileStanding/' + id,
    method: 'delete'
  })
}
